package com.retail.system.mapper;

import com.retail.core.common.CommonMapper;
import com.retail.system.entity.po.CronTriggersPo;
import com.retail.system.entity.request.CronTriggersRequest;
import com.retail.system.entity.vo.CronTriggersVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* 定时器 Mapper
* @author Administrator
*/
@Mapper
public interface CronTriggersMapper extends CommonMapper<CronTriggersRequest, CronTriggersVo> {

    /**
     * 更新状态
     * @param id
     * @param statusFlag
     * @return
     */
    Integer updateStatusFlagById(@Param("id") Long id, @Param("statusFlag") Integer statusFlag);

    /**
     * @param cronTriggersClass
     * @return
     */
    CronTriggersPo getModelByCronClassName(@Param("cronTriggersClass") String cronTriggersClass);
}
